﻿@model CMSMVC4.Areas.Admin.Models.ChangePasswordModel
@using CMSMVC4.MultiResource
@{
    ViewBag.Title = @Admin.ChangePassword;
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<script type="text/javascript" src="~/Scripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="~/Scripts/jquery.validate.unobtrusive.js"></script>
<div class="row-fluid">
    <div class="span7" style="margin-top: 50px;margin-left: 210px">
        <div class="box paint">
            <div class="title">
                <h4><span>@Admin.ChangePassword</span> </h4>
            </div>
            <div class="content">
                @using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post, new {area="Admin", @class = "form-horizontal cmxform", autocomplete = "off" }))
                {
                    @Html.ValidationSummary(true)
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">Mật khẩu cũ (*)<span class="help-block">Mật khẩu cũ</span> </label>
                        <div class="controls span7">
                            @Html.PasswordFor(x => x.Pasword, new { @class = "span12" })
                            @Html.ValidationMessageFor(x => x.Pasword)
                        </div>
                    </div>
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">@Admin.NewPassword (*)<span class="help-block">@Admin.NewPassword</span> </label>
                        <div class="controls span7">
                            @Html.PasswordFor(x => x.NewPassword, new { @class = "span12" })
                            @Html.ValidationMessageFor(x => x.NewPassword)
                        </div>
                    </div>
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">@Admin.ConfirmPassword (*)<span class="help-block">@Admin.ConfirmPassword</span> </label>
                        <div class="controls span7">
                            @Html.PasswordFor(x => x.ConfirmPassword, new { @class = "span12" })
                            @Html.ValidationMessageFor(x => x.ConfirmPassword)
                        </div>
                    </div>
                    <div class="form-actions row-fluid">
                        <div class="span7 offset3">
                            <button type="submit" class="btn btn-primary">@Admin.SaveChange</button>
                        </div>
                    </div>
                }
            </div>
        </div>
        <!-- End .box -->
    </div>
</div>